<?php

namespace Admin\Entity;

use Admin\Entity\Profile;

class Reader extends Profile {

    public $cardBarcode;
    public $yearLearn;
    public $isActive;
    public $dateCreated;
    public $dateExpiry;
    public $userID;
    public $classID;
    public function getDateCreated() {
        return $this->dateCreated;
    }

    public function setDateCreated($dateCreated) {
        $this->dateCreated = $dateCreated;
    }

    public function getDateExpiry() {
        return $this->dateExpiry;
    }

    public function setDateExpiry($dateExpiry) {
        $this->dateExpiry = $dateExpiry;
    }

        public function getIsActive() {
        return $this->isActive;
    }

    public function setIsActive($isActive) {
        $this->isActive = $isActive;
    }

    public function getCardBarcode() {
        return $this->cardBarcode;
    }

    public function setCardBarcode($cardBarcode) {
        $this->cardBarcode = $cardBarcode;
    }

    public function getYearLearn() {
        return $this->yearLearn;
    }

    public function setYearLearn($yearLearn) {
        $this->yearLearn = $yearLearn;
    }

    public function getUserID() {
        return $this->userID;
    }

    public function setUserID($userID) {
        $this->userID = $userID;
    }

    public function getClassID() {
        return $this->classID;
    }

    public function setClassID($classID) {
        $this->classID = $classID;
    }

    public function setDataReader($data) {
        $this->cardBarcode = (isset($data['cardBarcode'])) ? $data['cardBarcode'] : null;
        $this->yearLearn = (isset($data['yearLearn'])) ? $data['yearLearn'] : null;
        $this->isActive = (isset($data['isActive'])) ? $data['isActive'] : null;
        $this->dateCreated = (isset($data['dateCreated'])) ? $data['dateCreated'] : null;
        $this->dateExpiry = (isset($data['dateExpiry'])) ? $data['dateExpiry'] : null;
        $this->userID = (isset($data['userID'])) ? $data['userID'] : null;
        $this->classID = (isset($data['classID'])) ? $data['classID'] : null;
        $this->password = (isset($data['password'])) ? $data['password'] : null;
        $this->fullName = (isset($data['fullName'])) ? $data['fullName'] : null;
        $this->lastName = (isset($data['lastName'])) ? $data['lastName'] : null;
        $this->sex = (isset($data['sex'])) ? $data['sex'] : null;
        $this->birthday = (isset($data['birthday'])) ? $data['birthday'] : null;
        $this->email = (isset($data['email'])) ? $data['email'] : null;
        $this->phoneNumber = (isset($data['phoneNumber'])) ? $data['phoneNumber'] : null;
        $this->residentAddress = (isset($data['residentAddress'])) ? $data['residentAddress'] : null;
        $this->nativePlace = (isset($data['nativePlace'])) ? $data['nativePlace'] : null;
        $this->profilePhoto = (isset($data['profilePhoto'])) ? $data['profilePhoto'] : null;
    }

    public function getArrayCopy() {
        return get_object_vars($this);
    }

}

?>